package com.huatai.dataservice.panel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 面板配置记录表
 * </p>
 *
 * @author lxc
 * @since 2022-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_panel_configuration_record_dd")
@ApiModel(value="TbPanelConfigurationRecordDd对象", description="面板配置记录表")
public class TbPanelConfigurationRecordDd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@ApiModelProperty(value = "时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss SSS")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss SSS",
		timezone = "GMT+8"
	)
	private Date date;

	@ApiModelProperty(value = "修改时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss SSS")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss SSS",
		timezone = "GMT+8"
	)
	private Date updateDate;

	@TableField(value = "recordId")
	@ApiModelProperty(value = "记录id")
	private String recordId;

	@TableField(value = "trialId")
	@ApiModelProperty(value = "试验id")
	private String trialId;

	@TableField(value = "stageId")
	@ApiModelProperty(value = "阶段id")
	private String stageId;

	@TableField(value = "name")
	@ApiModelProperty(value = "名称")
	private String name;

	@TableField(value = "json")
	@ApiModelProperty(value = "面板json")
	private String json;

	@TableField(value = "state")
	@ApiModelProperty(value = "制定一个状态为某次试验面板信息")
	private Integer state;

	@TableField(value = "remark")
	@ApiModelProperty(value = "说明")
	private String remark;

    /*@ApiModelProperty(value = "记录id")
    private String recordId;

    @ApiModelProperty(value = "试验id")
    private String trialId;

    @ApiModelProperty(value = "阶段id")
    private String stageId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "面板json")
    private String json;

    @ApiModelProperty(value = "制定一个状态为某次试验面板信息")
    private Integer state;

    @ApiModelProperty(value = "说明")
    private String remark;*/


}
